package com.nvc.homeplan;

import android.app.*;
import android.content.Intent;
import android.os.Bundle;
import android.view.*;
import android.widget.*;

public class GaragePlanSearchPage  extends Activity 
{
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.garage_plan_search_page);
    }	

    public void optionCheckBoxClickHandler(View target) 
    {
    	HomePlanApplication application = (HomePlanApplication) getApplication();
    	application.searchType = "";
    	CheckBox chkbox = null;
    	switch (target.getId())
    	{
    		case R.id.garage_plan_search_page_checkbox_option2:
    			application.searchUrlQueryString = "plantype=0&garbays=1&mc=51&action=1";
    			chkbox = (CheckBox)findViewById(R.id.garage_plan_search_page_checkbox_option2);
    			break;
    		case R.id.garage_plan_search_page_checkbox_option3:
    			application.searchUrlQueryString = "plantype=0&garbays=2&mc=52&action=1";
    			chkbox = (CheckBox)findViewById(R.id.garage_plan_search_page_checkbox_option3);
    			break;
    		case R.id.garage_plan_search_page_checkbox_option4:
    			application.searchUrlQueryString = "plantype=0&garbays=3&mc=75&action=1";
    			chkbox = (CheckBox)findViewById(R.id.garage_plan_search_page_checkbox_option4);
    			break;
    		case R.id.garage_plan_search_page_checkbox_option5:
    			application.searchUrlQueryString = "plantype=0&garbays=4&mc=140&action=1";
    			chkbox = (CheckBox)findViewById(R.id.garage_plan_search_page_checkbox_option5);
    			break;
    		case R.id.garage_plan_search_page_checkbox_option6:
    			application.searchUrlQueryString = "plantype=0&garbays=5&mc=141&action=1";
    			chkbox = (CheckBox)findViewById(R.id.garage_plan_search_page_checkbox_option6);
    			break;
    		case R.id.garage_plan_search_page_checkbox_option7:
    			application.searchUrlQueryString = "plantype=0&garbays=6&mc=142&action=1";
    			chkbox = (CheckBox)findViewById(R.id.garage_plan_search_page_checkbox_option7);
    			break;
    		case R.id.garage_plan_search_page_checkbox_option8:
    			application.searchUrlQueryString = "plantype=0&gartype=4&mc=143&action=1";
    			chkbox = (CheckBox)findViewById(R.id.garage_plan_search_page_checkbox_option8);
    			break;
    		case R.id.garage_plan_search_page_checkbox_option9:
    			application.searchUrlQueryString = "plantype=0&gartype2=9&mc=144&action=1";
    			chkbox = (CheckBox)findViewById(R.id.garage_plan_search_page_checkbox_option9);
    			break;
    		case R.id.garage_plan_search_page_checkbox_option10:
    			application.searchUrlQueryString = "plantype=0&gartype2=1&mc=56&action=1";
    			chkbox = (CheckBox)findViewById(R.id.garage_plan_search_page_checkbox_option10);
    			break;
    		case R.id.garage_plan_search_page_checkbox_option11:
    			application.searchUrlQueryString = "plantype=0&gartype2=3&mc=147&action=1";
    			chkbox = (CheckBox)findViewById(R.id.garage_plan_search_page_checkbox_option11);
    			break;
    		case R.id.garage_plan_search_page_checkbox_option12:
    			application.searchUrlQueryString = "plantype=0&gartype2=4&mc=148&action=1";
    			chkbox = (CheckBox)findViewById(R.id.garage_plan_search_page_checkbox_option12);
    			break;
    		case R.id.garage_plan_search_page_checkbox_option13:
    			application.searchUrlQueryString = "plantype=0&gartype2=6&mc=57&action=1";
    			chkbox = (CheckBox)findViewById(R.id.garage_plan_search_page_checkbox_option13);
    			break;
    		case R.id.garage_plan_search_page_checkbox_option14:
    			application.searchUrlQueryString = "plantype=0&gartype2=2&mc=149&action=1";
    			chkbox = (CheckBox)findViewById(R.id.garage_plan_search_page_checkbox_option14);
    			break;
    		case R.id.garage_plan_search_page_checkbox_option15:
    			application.searchUrlQueryString = "plantype=0&gartype2=8&mc=72&action=1";
    			chkbox = (CheckBox)findViewById(R.id.garage_plan_search_page_checkbox_option15);
    			break;
    		case R.id.garage_plan_search_page_checkbox_option16:
    			application.searchUrlQueryString = "plantype=0&mc=37&action=1";
    			chkbox = (CheckBox)findViewById(R.id.garage_plan_search_page_checkbox_option16);
    			break;
    			
    			
    	}
        Intent intent = new Intent(Constants.INTENT_ACTION_PLAN_LIST_PAGE);
        startActivity(intent);
        chkbox.setChecked(false);
    }
    
    
        
}
